---
title: Astro.response.headers must not be reassigned.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **AstroResponseHeadersReassigned**: Individual headers can be added to and removed from `Astro.response.headers`, but it must not be replaced with another instance of `Headers` altogether.

## 무엇이 잘못되었나요?

`Astro.response`로 사용 가능한 `ResponseInit` 객체의 `headers` 필드에 값이 설정될 때 발생합니다.